package net.llz.service;

import net.llz.exception.BizException;
import net.llz.model.ProductMessage;
import net.llz.request.LockProductRequest;
import net.llz.util.JsonData;
import net.llz.vo.ProductVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Let-凡
 * @since 2023-01-28
 */
public interface ProductService  {

    Map<String,Object>pageProductList(int page,int size);

    ProductVO findDetailById(long productId);

    List<ProductVO> findProductsByIdBatch(List<Long> productIdList);

    JsonData lockProductStock(LockProductRequest lockProductRequest) throws BizException;


    boolean newProductMessage(ProductMessage productMessage);
}
